package com.knowif.pojo;

import java.util.Date;

import javax.validation.constraints.NotNull;

import org.springframework.validation.annotation.Validated;


@Validated
public class UserHelpful {
    /**
     * 主键id
     */
    private Integer id;

    /**
     * 评论表id
     */
    @NotNull(message = "userCommentId不允许为空")
    private Integer userCommentId;

    /**
     * 点赞人id
     */
    @NotNull(message = "userId不允许为空")
    private Integer userId;

    /**
     * 时间戳
     */
    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserCommentId() {
        return userCommentId;
    }

    public void setUserCommentId(Integer userCommentId) {
        this.userCommentId = userCommentId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}